package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;


/**
 * The persistent class for the kq_attendance database table.
 * 
 */
@Entity
@Table(name="kq_attendance")
@NamedQuery(name="KqAttendance.findAll", query="SELECT k FROM KqAttendance k")
public class KqAttendance implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="a_id")
	private int aId;

	@Column(name="a_ban")
	private int aBan;

	@Column(name="a_buo")
	private String aBuo;

	@Column(name="a_chidao")
	private int aChidao;

	@Column(name="a_chu")
	private int aChu;

	@Column(name="a_dao")
	private Time aDao;

	@Temporal(TemporalType.DATE)
	@Column(name="a_date")
	private Date aDate;

	@Column(name="a_kuang")
	private BigDecimal aKuang;

	@Column(name="a_shen")
	private int aShen;

	@Column(name="a_shichu")
	private BigDecimal aShichu;

	@Column(name="a_tui")
	private Time aTui;

	@Column(name="a_why")
	private String aWhy;

	@Column(name="a_xshen")
	private String aXshen;

	@Column(name="a_zaotui")
	private int aZaotui;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="a_shendate")
	private Date aShendate;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="a_sdate")
	private Date aSdate;

	//bi-directional many-to-one association to KqBanci
	@ManyToOne
	@JoinColumn(name="b_id")
	private KqBanci kqBanci;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public KqAttendance() {
	}

	public int getAId() {
		return this.aId;
	}

	public void setAId(int aId) {
		this.aId = aId;
	}

	public int getABan() {
		return this.aBan;
	}

	public void setABan(int aBan) {
		this.aBan = aBan;
	}

	public String getABuo() {
		return this.aBuo;
	}

	public void setABuo(String aBuo) {
		this.aBuo = aBuo;
	}

	public int getAChidao() {
		return this.aChidao;
	}

	public void setAChidao(int aChidao) {
		this.aChidao = aChidao;
	}

	public Date getaSdate() {
		return aSdate;
	}

	public void setaSdate(Date aSdate) {
		this.aSdate = aSdate;
	}

	public int getAChu() {
		return this.aChu;
	}

	public void setAChu(int aChu) {
		this.aChu = aChu;
	}

	public Time getADao() {
		return this.aDao;
	}

	public void setADao(Time aDao) {
		this.aDao = aDao;
	}

	public Date getADate() {
		return this.aDate;
	}

	public void setADate(Date aDate) {
		this.aDate = aDate;
	}

	public BigDecimal getAKuang() {
		return this.aKuang;
	}

	public void setAKuang(BigDecimal aKuang) {
		this.aKuang = aKuang;
	}

	public int getAShen() {
		return this.aShen;
	}

	public void setAShen(int aShen) {
		this.aShen = aShen;
	}

	public BigDecimal getAShichu() {
		return this.aShichu;
	}

	public void setAShichu(BigDecimal aShichu) {
		this.aShichu = aShichu;
	}

	public Time getATui() {
		return this.aTui;
	}

	public void setATui(Time aTui) {
		this.aTui = aTui;
	}

	public String getAWhy() {
		return this.aWhy;
	}

	public void setAWhy(String aWhy) {
		this.aWhy = aWhy;
	}

	public String getAXshen() {
		return this.aXshen;
	}

	public void setAXshen(String aXshen) {
		this.aXshen = aXshen;
	}

	public int getAZaotui() {
		return this.aZaotui;
	}

	public void setAZaotui(int aZaotui) {
		this.aZaotui = aZaotui;
	}

	public KqBanci getKqBanci() {
		return this.kqBanci;
	}

	public void setKqBanci(KqBanci kqBanci) {
		this.kqBanci = kqBanci;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Date getAShendate() {
		return aShendate;
	}

	public void setAShendate(Date aShendate) {
		this.aShendate = aShendate;
	}
}